﻿namespace FluentCMS.Repositories.EFCore.DbModels;

public interface IAuditableEntityModel : IEntityModel
{
    string CreatedBy { get; set; }
    DateTime CreatedAt { get; set; }
    string? ModifiedBy { get; set; }
    DateTime? ModifiedAt { get; set; }
}

public class AuditableEntityModel : EntityModel, IAuditableEntityModel
{
    public string CreatedBy { get; set; } = default!;
    public DateTime CreatedAt { get; set; }
    public string? ModifiedBy { get; set; }
    public DateTime? ModifiedAt { get; set; }
}
